package com.jyw.system.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author Created by ZhangCheng on 2024/01/10
 */
@ApiModel("修改科室IP实体")
@Data
public class SysDeptIpAddressEditDto {

    /** 主键 */
    @ApiModelProperty("主键")
    @NotNull(message = "主键不能为空")
    private Long id;

    /** 科室部门ID */
    @ApiModelProperty("科室部门ID")
    @NotNull(message = "科室部门ID不能为空")
    private Long deptId;

    /** ip地址 */
    @ApiModelProperty("ip地址")
    @NotBlank(message = "ip地址不能为空")
    @Size(max = 50, message = "ip地址长度不能超过50个字符")
    private String ipAddress;
}
